package com.iap.admin.context
{
	import com.iap.common.command.FavoriteCommand;
	import com.iap.admin.mediator.FavoriteMediator;
	import com.iap.common.service.FavoriteService;
	import com.iap.common.service.IFavoriteService;
	import com.iap.common.signal.FavoriteRequestSignal;
	import com.iap.admin.view.FavoriteView;
	import com.iap.app.data.AppData;
	import com.iap.app.data.IAppData;
	
	import flash.display.DisplayObjectContainer;
	
	import org.robotlegs.mvcs.SignalContext;
	
	public class FavoriteContext extends SignalContext
	{
		override public function startup():void
		{
			injector.mapSingletonOf(IFavoriteService, FavoriteService);
			injector.mapSingletonOf(IAppData, AppData);
			
			signalCommandMap.mapSignalClass(FavoriteRequestSignal, FavoriteCommand);
			
			mediatorMap.mapView(FavoriteView, FavoriteMediator);
		}
	}
}